package com.entity;

import java.io.Serializable;

/**
 * roomstatus
 * @author 
 */
public class Roomstatus implements Serializable {
    private Integer roomstatusid;

    private String roomstatus;

    private static final long serialVersionUID = 1L;

    public Integer getRoomstatusid() {
        return roomstatusid;
    }

    public void setRoomstatusid(Integer roomstatusid) {
        this.roomstatusid = roomstatusid;
    }

    public String getRoomstatus() {
        return roomstatus;
    }

    public void setRoomstatus(String roomstatus) {
        this.roomstatus = roomstatus;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Roomstatus other = (Roomstatus) that;
        return (this.getRoomstatusid() == null ? other.getRoomstatusid() == null : this.getRoomstatusid().equals(other.getRoomstatusid()))
            && (this.getRoomstatus() == null ? other.getRoomstatus() == null : this.getRoomstatus().equals(other.getRoomstatus()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getRoomstatusid() == null) ? 0 : getRoomstatusid().hashCode());
        result = prime * result + ((getRoomstatus() == null) ? 0 : getRoomstatus().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", roomstatusid=").append(roomstatusid);
        sb.append(", roomstatus=").append(roomstatus);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}